using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class VInteractableItem : MonoBehaviour
{
    public string itemName;
    public string fullName => $"{domain.name}_{itemName}";
    public bool force = true;
    public VInteractableItem belongsToContainer; //容器
    public VEnvironment domain;

    public void Interact(VActBehaviour behaviour)
    {
        if (belongsToContainer != null)
        {
            Interact(behaviour);
            return;
        }

        if (force)
        {
            //强制使用物体规定的交互方式
        }
    }

    [Flags]
    public enum Mode
    {
        Pickable,
        Eatable,
        Lyingable,
    }
}

public class VEnvironment
{
    public string name;
}
